
<template>
  <h1>欢迎来到登录页面</h1>
  <el-button @click="goHome">回首页</el-button>
 
</template>


<script>
  import Welcome from './Welcome.vue'
  export default {
    name: 'login',
    components:{Welcome},
    mounted(){
     /* this.$request({
        method:'get',
        url:'/user/getLogin',
        data:{
          name: 'jack'
        }
      }).then((res) =>{
        console.log(res)
      })
        */
       this.$request.get('/user/getLogin',{name:'jack'},{mock: true}).then((res) =>{
          console.log(res)
       })
    },
    methods:{
      goHome(){
        this.$router.push('/welcome')
      }
    }
  }

</script>


<style>
 
</style>
